<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ include file="/common/jsp/page.jsp" %>

<h2 class="contentTitle">管理员更新</h2>
<div class="pageContent">
	
	<form method="post" action="${rootpath}/admin_adminUpdateSave.htm" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		<div class="pageFormContent nowrap" layoutH="97">
		<input type="hidden" name="id" value="${requestScope.admin.id }">
			<dl>
				<dt>角色：</dt>
				<dd>
					<select name="roleId">
						<option value="">请选择</option>
						<c:forEach items="${requestScope.roleList }" var="list" >
							<option value="${list.id }" ${list.id == requestScope.admin.role.id ?  'selected' : ''}>${list.name}</option>
						</c:forEach>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>邮箱：</dt>
				<dd>
					<input type="text" name="email" value="${requestScope.admin.email }"  />
				</dd>
			</dl>
			<dl>
				<dt>密码：</dt>
				<dd>
					<input id="adminFormPassword" type="password" name="password" value=""  />
				</dd>
			</dl>
			<dl>
				<dt>确认密码：</dt>
				<dd> 
					<input type="password" name="repassword" value="" equalto="#adminFormPassword" />
				</dd>
			</dl>
			<dl>
				<dt>姓名：</dt>
				<dd>
					<input type="text" name="trueName" value="${requestScope.admin.trueName }"  />
				</dd>
			</dl>
			<dl>
				<dt>手机：</dt>
				<dd>
					<input type="text" name="phone"  value="${requestScope.admin.phone }"  />
				</dd>
			</dl>
			<dl>
				<dt>qq：</dt>
				<dd>
					<input type="qq" name="qq" value="${requestScope.admin.qq }" />
				</dd>
			</dl>
			
			<dl>
				<dt>状态：</dt>
				<dd>
					<input id="adminUpdateStatus1" type="radio" name="status" value="0" ${'0' == requestScope.admin.status ?  'checked' : ''}/>禁用
					<input id="adminUpdateStatus2" type="radio" name="status" value="1" checked="checked" ${'1' == requestScope.admin.status ?  'checked' : ''}/>启用
				</dd>
			</dl>
			<dl>
				<dt>创建时间：</dt>
				<dd>
					<fmt:formatDate value="${requestScope.admin.createDate }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</dd>
			</dl>
			<dl>
				<dt>更新时间：</dt>
				<dd>
					<fmt:formatDate value="${requestScope.admin.updateDate }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</dd>
			</dl>
			<dl>
				<dt>上次登录时间：</dt>
				<dd>
					<fmt:formatDate value="${requestScope.admin.lastLoginDate }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</dd>
			</dl>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>
